<?php
/**
 * Created by PhpStorm
 * USER:  Zhaoys
 * Date:  2024/3/11
 */


//use App\Service\Alarm;
//
//$container = new League\Container\Container;
//
//$container->add('alarm', new Alarm());
//
//$container->get('alarm')->wakeup();
//
//
//$container = new League\Container\Container;
//
//$container->addServiceProvider(new App\Providers\AppServiceProvider());
//$container->get('alarm')->wakeup();


use App\Providers\ViewServiceProvider;

$container = new League\Container\Container;

//$container->addServiceProvider(new App\Providers\AppServiceProvider());
$container->add('twig', new App\Providers\ViewServiceProvider());
//$container->addServiceProvider(new App\Providers\ViewServiceProvider());
//$name = 'caoayu';
//return view('index.twig',compact('name')
//dump($container->get('twig')->render("index.twig", [][]));exit;
//$GLOBALS['container'] = $container;